<Item type="Activity" action="SqlLoad">
  UPDATE [ACTIVITY] set
   state='@3',
   current_state='@4',
   active_date=NULLIF('@5',''),
   closed_date=NULLIF('@6',''),
   created_on=NULLIF('@7',''),
   modified_on=NULLIF('@8',''),
   created_by_id=(select id from [USER] where keyed_name='@9'),
   modified_by_id=(select id from [USER] where keyed_name='@10') 
  WHERE [ACTIVITY].name='@2' and [ACTIVITY].id in (select related_id from [WORKFLOW_PROCESS_ACTIVITY] where source_id=(select related_id from [WORKFLOW] where source_id='@1'))
</Item>	